<?php
global $_RQ,$_AR;
//初始化
//扫码进入的
if($_RQ['fromuser'] && $_RQ['action']=='myshop'){
	$this->session('sao_fromuser',$_RQ['fromuser']);
}
$member=$this->model('member')->checkmember('',false);
if(!$member['is_agent'] || $member['type']==1){
	exi('您还不是购车合伙人！','error','/member.index/');
}
$return['pluginset']=$this->setting;
$return['pluginset']['app_saleurl']=$return['pluginset']['app_saleurl']?:'jy_newcar/fenxiao.qrcode/main';
$pluginname=$this->session('pluginname')?:'jy_newcar';
if($this->session('footernav')){
	$return['pluginset']['footernav']=$this->session('footernav');
}
$return['registerurl']=$return['pluginset']['app_saleurl']?:'';
$return['sharedata']=array(
	'title'=>$return['pluginset']['share_title']?:'欢迎访问',
	'desc'=>$return['pluginset']['share_desc']?:$return['pluginset']['title'].'，欢迎光临，我的小店！！',
	'link'=>custom_url('jy_newcar/index//fromuser='.$_SESSION['uid'],true),
	'imgUrl'=>tomedia($return['pluginset']['logo']),
);
?>